package utils

import (
	"crypto/md5"
	"fmt"
	"time"
)

func GenSystemOrderId(mchId int) string {
	str := fmt.Sprintf("%d%d", mchId, time.Now().Unix())
	md5int := md5.New()
	md5int.Write([]byte(str))
	result := md5int.Sum([]byte(nil))
	return fmt.Sprintf("%x", result)
}
